<!DOCTYPE html>
<html lang="zh">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>编程论坛</title>
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha1/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-GLhlTQ8iRABdZLl6O3oVMWSktQOp6b7In1Zl3/Jr59b6EGGoI1aFkw7cmDA6j6gD" crossorigin="anonymous">
    <link href="./public/css/index-php-style.css" rel="stylesheet" />
    <link href="./public/css/footer.css" rel="stylesheet" />
    <link href="./public/css/cbl.css" rel="stylesheet" />
    <style>
        body {
            background-color: #f2f3f5;
            padding-top: 6rem;
        }

        .navbar {
            background-color: #fff !important;
        }

        a {
            text-decoration: none;
        }

        .cont-box:hover {
            background: #f7f8fa;
        }
    </style>
</head>

<body>
    <!-- 引入nav导航栏 -->
    <?php require './nav.php'; ?>

    <div class="container con-box">
        <div class="row">
            <div class="col-sm-9 col-md-9">
                <div id="carouselExampleInterval" class="carousel slide swipe-pic" data-bs-ride="carousel">
                    <div class="carousel-inner">
                        <div class="carousel-item active" data-bs-interval="3000">
                            <img src="./public/images/pic3.webp" class="d-block w-100" alt="">
                        </div>
                        <div class="carousel-item" data-bs-interval="3000">
                            <img src="./public/images/pic1.webp" class="d-block w-100" alt="">
                        </div>
                        <div class="carousel-item" data-bs-interval="3000">
                            <img src="./public/images/pic4.webp" class="d-block w-100" alt="">
                        </div>
                    </div>
                    <button class="carousel-control-prev" type="button" data-bs-target="#carouselExampleInterval" data-bs-slide="prev">
                        <span class="carousel-control-prev-icon" aria-hidden="true"></span>
                        <span class="visually-hidden">Previous</span>
                    </button>
                    <button class="carousel-control-next" type="button" data-bs-target="#carouselExampleInterval" data-bs-slide="next">
                        <span class="carousel-control-next-icon" aria-hidden="true"></span>
                        <span class="visually-hidden">Next</span>
                    </button>
                </div>

                <!--内容区-->
                <div class="panel-box" style="margin-top:20px;">
                    <div class="tab-tit">
                        <span class="tit-span">推荐</span>
                    </div>

                    <?php
                    require './selectnews.php';

                    // getNews(0);
                    ?>
                </div>
            </div>

            <div class="col-sm-3 col-md-3">
                <?php require './cbl.php'; ?>
            </div>

        </div>
    </div>

    <!--底部内容-->
    <?php require './footer.php'; ?>


    <script src="./public/js/jquery-3.7.0.min.js"></script>
    <script src="./public/js/bootstrap.bundle.min.js"></script>
    <script src="./public/js/getApiData.js"></script>
    <script src="./public/js/changeContent.js"></script>
</body>

</html>